package com.java.observer.jdk;

import java.util.Observable;

public class TeacherSubject extends Observable {

    public void setHomework(String info) {
        System.out.println("老师布置作业:" + info);
        super.setChanged();
        super.notifyObservers(info);
    }
}
